package com.flkin.security;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author yanxiang.huang
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "security")
public class SecurityProperties {

    private String header;
    private String tokenStartWith;
    private String base64Secret;
    private Long tokenExpireSeconds;
    private Long tokenDetectSeconds;
    private Long tokenRefreshSeconds;

    public String getTokenStartWith() {
        return tokenStartWith + " ";
    }
}
